<?php

class Page extends Controller {
	
	public function index(){
		$this->show();
	}
	
	public function show($page="index"){
		$this->set("page", $page);
		
		$pages = self::pages();
		if($pages){
			$this->title = $pages[$page];
		}
		switch ($page){
			default:
				$this->render();
				break;
			case "index":
				$this->layout = "layout_home";
				$this->render("page/" . $_SESSION["language"] . "/index");
				break;
			case "contact":
				$this->render("page/contact");
				break;
		}
	}
}

?>